﻿<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="AddNewAdvertise.ascx.cs"
    Inherits="NLLSite.Administrator.UserControl.AddNewAdvertise" %>
<%@ Register Assembly="CKEditor.NET" Namespace="CKEditor.NET" TagPrefix="CKEditor" %>
<script runat="server" language="C#">

	// We are not using a code behind page here just for simplicity in the
	// sample file. In this way we don't have to distribute a compiled DLL for
	// this page. In real cases, the following code will instead be defined in
	// a code behind file.

	protected override void OnLoad( EventArgs e )
	{
		CKFinder.FileBrowser _FileBrowser = new CKFinder.FileBrowser();
		_FileBrowser.BasePath = "../../ckfinder/";
        _FileBrowser.SetupCKEditor(CKEditor1);
	}

</script>
<style type="text/css">
    .style1
    {
        width: 130px;
    }
</style>
<div class="box box-100">
    <div class="boxin">
        <div class="header">
            <h3>
                Thêm mới quảng cáo</h3>
        </div>
        <div style="padding: 18px;">
            <!--<form class="basic" action="" method="post" enctype="multipart/form-data"><!-- Default basic forms -->
            <div class="inner-form">
                <asp:Panel ID="Panel1" runat="server">
                    <asp:Label ID="lblSuccess" runat="server" Text="Label" ForeColor="#CC0000" Visible="False"></asp:Label>
                    <table>
                        <tr>
                            <td class="style1">
                                Tên quảng cáo:
                            </td>
                            <td>
                                <asp:TextBox ID="txtTen" runat="server" Width="250px"></asp:TextBox>
                            </td>
                            <td>
                                <asp:RequiredFieldValidator ID="RequiredFieldValidator1" runat="server" ErrorMessage="(*)"
                                    ControlToValidate="txtTen"></asp:RequiredFieldValidator>
                            </td>
                        </tr>
                        <tr>
                            <td class="style1">
                                Vị trí quảng cáo:
                            </td>
                            <td>
                                <asp:DropDownList ID="ddlVitri" runat="server" Width="256px">
                                    <asp:ListItem>Chọn vị trí hiển thị</asp:ListItem>
                                    <asp:ListItem>Banner Advertise</asp:ListItem>
                                    <asp:ListItem>Banner Right</asp:ListItem>
                                    <asp:ListItem>Banner Top</asp:ListItem>
                                    <asp:ListItem>Banner Left</asp:ListItem>
                                </asp:DropDownList>
                            </td>
                            <td>
                            </td>
                        </tr>
                        <tr>
                            <td class="style1">
                                Nội dung:</td>
                            <td>
                                <CKEditor:CKEditorControl ID="CKEditor1" runat="server" Width="600px"></CKEditor:CKEditorControl>
                            </td>
                            <td>
                                &nbsp;
                            </td>
                        </tr>
                        <tr>
                            <td class="style1">
                                Hiển thị trang chủ:
                            </td>
                            <td>
                                <asp:CheckBox ID="CheckBox1" runat="server" />
                            </td>
                            <td>
                                &nbsp;</td>
                        </tr>
                        <tr>
                            <td class="style1">
                            </td>
                            <td>
                                <asp:Button ID="btnThem" runat="server" Text="Thêm mới" OnClick="btnThem_Click" 
                                    CssClass="altbutton" />
                                <asp:Button ID="btnHuy" runat="server" Text="Thiết lập lại" 
                                    OnClick="btnHuy_Click" CssClass="altbutton" />
                                    <a href="QuanliQuangCao.aspx"><input type="button" value="Quay về trang quản lý" class="altbutton" /></a> 
                            </td>
                        </tr>
                    </table>
                </asp:Panel>
            </div>
        </div>
    </div>
</div>
